<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;


class news extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;
    protected $table ='news';

    /**
     * @param $uid
     * @param $news
     * Su ang
     * 系统消息添加
     */
    public static function news($uid,$news)
    {
        self::insert(['user_id'=>$uid,'content'=>$news,'created_at'=>date("Y-m-d H:i:s ")]);
    }

}
